<?php
/**
 * Created by PhpStorm.
 * User: moon
 * Date: 2021/6/8
 * Time: 21:04
 */

namespace app\admin\model;

use app\BaseModel;

class Specifications extends BaseModel
{
    protected $table = 'sh_spe';

    public $rule = [
        'name|分类名称' => 'require',
        'price|价格' => 'require|float|>=:0',
        'sort' => 'require|>=:0',
        'status' => 'require|between:1,2|number',
    ];
    public $message = [
        'sort' => '排序异常',
        'status.require' => '状态选择异常',
        'status.between' => '状态选择异常',
        'status.number' => '状态选择异常',
    ];
}
